package com.thoughtworks.model;

public class Route {
	private String routeString;
	
	public Route(String route) {
		this.routeString = route.trim();
	}
	
	public String getStartNode() {
		return routeString.substring(0, 1);
	}
	
	public String getEndNode() {
		return routeString.substring(routeString.length() - 1);
	}

	public String getRouteString() {
		return routeString;
	}

	public void setRouteString(String routeString) {
		this.routeString = routeString;
	}
}
